<?php echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'."\n"; ?>
<!DOCTYPE config>
<config>

	<imageBaseUrl>/templates/_football/images/</imageBaseUrl><!--URL where images will be loaded from-->
	<videoBaseUrl>/templates/_football/videos/</videoBaseUrl><!--URL where videos will be loaded from-->
	<thumbnailBaseUrl>/templates/_football/thumb/</thumbnailBaseUrl><!--URL where thumbnails will be loaded from-->
	<autoPlay>1</autoPlay><!--Auto play next item (first item always plays) (0=off, 1=on)-->
	<volume>100</volume><!--Volume for the entire application (0-100)-->
	<imageInterval>5</imageInterval><!--Time to display an image in seconds, when autoplaying-->
	<wrap>1</wrap><!--Wrap around when autoplaying (0=off, 1=on)-->
	<popWidth>640</popWidth><!--width variable for the popup or overlay-->
	<popHeight>480</popHeight><!--Height variable for the popup or overlay-->
	<items>
<?php
if ($handle = opendir($_SERVER["DOCUMENT_ROOT"].'/templates/_football/videos/')) {
    while (false !== ($file = readdir($handle))) { 
        if ($file != "." && $file != "..") { 
			list($name, $ext) = explode(".", $file);
			if($ext != "flv") continue;
			echo "\t\t<item title=\"$name\" type=\"video\">\n";
			echo "\t\t\t<thumbnail>$name.jpg</thumbnail>\n";
			echo "\t\t\t<url>$file</url>\n";
			echo "\t\t</item>\n";
        } 
    }
    closedir($handle); 
}
if ($handle = opendir($_SERVER["DOCUMENT_ROOT"].'/templates/_football/images/')) {
    while (false !== ($file = readdir($handle))) { 
        if ($file != "." && $file != "..") { 
			list($name, $ext) = explode(".", $file);
			if($ext != "jpg") continue;
			echo "\t\t<item title=\"$name\" type=\"image\">\n";
			echo "\t\t\t<thumbnail>$file</thumbnail>\n";
			echo "\t\t\t<url>$file</url>\n";
			echo "\t\t</item>\n";
        } 
    }
    closedir($handle); 
}
?>
	</items>
</config>
